package com.llp.declaresystem.service;

import com.llp.declaresystem.domain.dto.UserDto;
import com.llp.declaresystem.domain.entity.Expert;
import com.baomidou.mybatisplus.extension.service.IService;
import com.llp.declaresystem.domain.entity.Project;
import com.llp.declaresystem.domain.entity.ProjectCategory;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author NASK
* @description 针对表【expert(专家信息表)】的数据库操作Service
* @createDate 2022-11-23 16:22:17
*/
public interface ExpertService extends IService<Expert> {

    int updateByName(Expert expert);

    /**
     * 通过uid更新信息
     * @param userDto
     * @return
     */
    int updatePwdByUid(UserDto userDto);

    /**
     * 通过uid查找所有项目分类信息
     * @param uid
     * @return
     */
    List<ProjectCategory> selectAllProjectCategory(Integer uid);
    int updateProjectInfo(Project project);

    /**
     * 通过categoryId查询项目信息
     * @param categoryId
     * @return
     */
   List<Project> selectProjectByCid(Integer categoryId) ;
    /**
     * 根据projectId查询项目信息
     * @param pid
     * @return
     */
    Project selectProjectByPid(Integer pid);

}
